		$('#item_submit_save').click(function(e) {

			var id = parseInt($('#couponsId').val());
			parseInt($('#percount').val())
			//新增提交数据
			var info = {
				timeFrom: $('#timeFrom').val(),
				timeTo: $('#timeTo').val(),
				name: $('#name').val(),
				price: $('#price').val(),
				initprice:$('#initprice').val(),
				num: parseInt($('#num').val()),
//				percount: parseInt($('#percount').val()),
//				daycount: parseInt($('#daycount').val()),
				id: id,
				shop: parseInt($('#shopid').val()),
				description: parseInt($('input[name="couponstype"]:checked').val()),
				remark: $('#remark').val(),
				type: "兑换券"
			};
			if(!id || id == 0) {
				doPost("shop/addShopcoupon", info, function(data) {
					if(data.success) {
						alert('提交成功');
						window.history.go(0);
					} else if(data.code == 400) {
						alert(data.desc);
					}
				});
			} else {
				doPost("shop/updateManageCoupons", info, function(data) {
					if(data.success) {
						alert('提交成功');
						window.history.go(0);
					} else if(data.code == 400) {
						alert(data.desc);
					}
				});
			}
		});